package com.aurora.service;

import com.aurora.entity.MessageInfo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * (MessageInfo)表服务接口
 *
 * @author makejava
 * @since 2022-11-28 15:42:16
 */
public interface MessageInfoService extends IService<MessageInfo> {

    /**
     * 得到聊天记录
     * @param receiverId 接收者id
     * @param pageSize 页大小
     * @param pageNum 页码
     * @return Result
     */
    Page<MessageInfo> getChatRecord(String receiverId, Integer pageSize, Integer pageNum);
}

